package com.zjitc.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * Create By IntelliJ IDEA
 *
 * @author:
 * @create-Time: 2017/11/15  10:48
 */
public class Product implements Serializable {
  private String pid;
  private String name;
  private Double marketPrice;
  private Double shopPrice;
  private String image;
  private Date date;
  private Integer isHot;
  private String desc;
  private Integer flag;
  private  String cid;
  private Integer inventory;
  private Category category ;

  public Product(String pid, String name, double marketPrice, double shopPrice, String image, Date date, Integer isHot, String desc, Integer flag, String cid, Integer inventory) {
    this.pid = pid;
    this.name = name;
    this.marketPrice = marketPrice;
    this.shopPrice = shopPrice;
    this.image = image;
    this.date = date;
    this.isHot = isHot;
    this.desc = desc;
    this.flag = flag;
    this.cid = cid;
    this.inventory = inventory;
  }

  public Product() {
  }

  public String getPid() {
    return pid;
  }

  public void setPid(String pid) {
    this.pid = pid;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public double getMarketPrice() {
    return marketPrice;
  }

  public void setMarketPrice(double marketPrice) {
    this.marketPrice = marketPrice;
  }

  public double getShopPrice() {
    return shopPrice;
  }

  public void setShopPrice(double shopPrice) {
    this.shopPrice = shopPrice;
  }

  public String getImage() {
    return image;
  }

  public void setImage(String image) {
    this.image = image;
  }

  public Date getDate() {
    return date;
  }

  public void setDate(Date date) {
    this.date = date;
  }

  public String getDesc() {
    return desc;
  }

  public void setDesc(String desc) {
    this.desc = desc;
  }

  public Integer getFlag() {
    return flag;
  }

  public void setFlag(Integer flag) {
    this.flag = flag;
  }


  public String getCid() {
    return cid;
  }

  public void setCid(String cid) {
    this.cid = cid;
  }

  public Category getCategory() {
    return category;
  }

  public void setCategory(Category category) {
    this.category = category;
  }

  public Integer getIsHot() {
    return isHot;
  }

  public void setIsHot(Integer isHot) {
    this.isHot = isHot;
  }


  public Integer getInventory() {
    return inventory;
  }

  public void setInventory(Integer inventory) {
    this.inventory = inventory;
  }

  @Override
  public String toString() {
    return "Product{" +
        "pid='" + pid + '\'' +
        ", name='" + name + '\'' +
        ", marketPrice=" + marketPrice +
        ", shopPrice=" + shopPrice +
        ", image='" + image + '\'' +
        ", date=" + date +
        ", isHot=" + isHot +
        ", desc='" + desc + '\'' +
        ", flag=" + flag +
        ", cid='" + cid + '\'' +
        ", inventory=" + inventory +
        ", category=" + category +
        '}';
  }
}
